Skip to content

[#380] Update StoryFactory v2 address and ABI#381

Merged
realproject7 merged 2 commits intomainfrom
task/380-v2-address-abi
Mar 20, 2026
Merged

[#380] Update StoryFactory v2 address and ABI#381
realproject7 merged 2 commits intomainfrom
task/380-v2-address-abi

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Updated mainnet StoryFactory address to 0x27B4FCf333f29a3865b3B76ea00C955D7b64BD0F
  • Added hasSunset, updateCurve, owner functions and CurveUpdated event to ABI
  • Fixed createStoryline stateMutability from nonpayable to payable
  • Mirrored all ABI/address/deployment-block changes in SDK package
  • sunset references are all Supabase DB queries (not contract reads) — no changes needed

Acceptance

  • npm run typecheck passes
  • npm run lint passes

Fixes #380

🤖 Generated with Claude Code

Update mainnet address to 0x27B4FCf333f29a3865b3B76ea00C955D7b64BD0F,
add hasSunset, updateCurve, owner, CurveUpdated to ABI, fix
createStoryline stateMutability to payable, and update SDK deployment
block.

Fixes #380

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Reviewed diff against issue #380 acceptance criteria:

✅ Constants updated — mainnet address 0x27B4...BD0F in both web app and SDK
✅ Deployment block updated in SDK (43_606_398)
✅ ABI additions — hasSunset, updateCurve, owner, CurveUpdated all present with correct signatures
createStoryline stateMutability corrected to payable (matches v2 contract)
✅ SDK mirrors web app ABI/constants changes
✅ Typecheck and lint pass (per PR)

On sunset references: T3's assessment is correct — all remaining sunset references (~13 files) are Supabase DB queries, UI conditionals reading from DB, type definitions, and docs. None are direct contract reads. The DB sunset column is populated by the indexer and is still valid. Updating those references would be an indexer/schema task, not a web app contract update.

Clean, focused diff. No issues found.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The ABI and address updates look consistent, and CI is passing, but the PR does not fully implement the issue scope for the web app constants.

Findings

  • [medium] The web app deployment block update is missing.
    • File: lib/contracts/constants.ts:27
    • Suggestion: add or update the mainnet deployment-block constant in the web app alongside the new StoryFactory address so the app matches issue #380 and stays in sync with the SDK update at packages/sdk/src/constants.ts:29.

Decision

Requesting changes because issue #380 explicitly requires updating lib/contracts/constants.ts with both the new mainnet address and deployment block, but this PR only changes the address on the web-app side.

Adds mainnet deployment block (43_606_398) to lib/contracts/constants.ts
to match the SDK, per reviewer feedback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The follow-up update adds the missing web-app deployment block, and the ABI/address changes remain consistent across the app and SDK.

Findings

  • None.

Decision

Approving because the PR now matches issue #380 scope and the lint-and-typecheck check passed on the latest push.

@realproject7 realproject7 merged commit 514a906 into main Mar 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mainnet] Update StoryFactory address and ABI for v2 deployment

2 participants